package com.tms.domain;

import java.util.Date;

/**
 * 夹具定义类
 *
 * @author sxy
 */
public class TDef {

    public TDef() {
    }

    public TDef(String code, String name, int familyId, String family, String model, String partNo, User owner, User recer, User editer, String usedFor, int upl, int pmPeriod, Date recOn, Date editOn, String remark, Workcell workcell, int maxCount) {
        this.familyId = familyId;
        this.family = family;
        this.owner = owner;
        this.recer = recer;
        this.editer = editer;
        this.code = code;
        this.name = name;
        this.model = model;
        this.partNo = partNo;
        this.usedFor = usedFor;
        this.upl = upl;
        this.pmPeriod = pmPeriod;
        this.recOn = recOn;
        this.editOn = editOn;
        this.remark = remark;
        this.workcell = workcell;
        this.maxCount = maxCount;
    }


    public TDef(int id, String code, String name, int familyId, String family, String model, String partNo, User owner, User recer, User editer, String usedFor, int upl, int pmPeriod, Date recOn, Date editOn, String remark, Workcell workcell, int maxCount) {
        this.id = id;
        this.familyId = familyId;
        this.family = family;
        this.owner = owner;
        this.recer = recer;
        this.editer = editer;
        this.code = code;
        this.name = name;
        this.model = model;
        this.partNo = partNo;
        this.usedFor = usedFor;
        this.upl = upl;
        this.pmPeriod = pmPeriod;
        this.recOn = recOn;
        this.editOn = editOn;
        this.remark = remark;
        this.workcell = workcell;
        this.maxCount = maxCount;
    }

    private int id;

    private int familyId;

    private String family;

    private User owner;

    private User recer;

    private User editer;

    private String code;

    private String name;

    private String model;

    private String partNo;

    private String usedFor;

    private int upl;

    private int pmPeriod;

    private Date recOn;

    private Date editOn;

    private String remark;

    private Workcell workcell;

    private int maxCount;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getFamilyId() {
        return familyId;
    }

    public void setFamilyId(int familyId) {
        this.familyId = familyId;
    }

    public String getFamily() {
        return family;
    }

    public void setFamily(String family) {
        this.family = family;
    }

    public User getOwner() {
        return owner;
    }

    public void setOwner(User owner) {
        this.owner = owner;
    }

    public User getRecer() {
        return recer;
    }

    public void setRecer(User recer) {
        this.recer = recer;
    }

    public User getEditer() {
        return editer;
    }

    public void setEditer(User editer) {
        this.editer = editer;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getPartNo() {
        return partNo;
    }

    public void setPartNo(String partNo) {
        this.partNo = partNo;
    }

    public String getUsedFor() {
        return usedFor;
    }

    public void setUsedFor(String usedFor) {
        this.usedFor = usedFor;
    }

    public int getUpl() {
        return upl;
    }

    public void setUpl(int upl) {
        this.upl = upl;
    }

    public int getPmPeriod() {
        return pmPeriod;
    }

    public void setPmPeriod(int pmPeriod) {
        this.pmPeriod = pmPeriod;
    }

    public Date getRecOn() {
        return recOn;
    }

    public void setRecOn(Date recOn) {
        this.recOn = recOn;
    }

    public Date getEditOn() {
        return editOn;
    }

    public void setEditOn(Date editOn) {
        this.editOn = editOn;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Workcell getWorkcell() {
        return workcell;
    }

    public void setWorkcell(Workcell workcell) {
        this.workcell = workcell;
    }

    public int getMaxCount() {
        return maxCount;
    }

    public void setMaxCount(int maxCount) {
        this.maxCount = maxCount;
    }
}